import 'dart:core';

import 'package:json_annotation/json_annotation.dart';

part 'user2.g.dart';
/// @date 2020/08/26  15:39
/// @author 程志强
/// @des

@JsonSerializable(nullable: false)
class User2 {
  final String name;
  final String email;

  User2({this.name, this.email});

  factory User2.formJson(Map<String, dynamic> json) => _$User2FromJson(json);

  Map<String, dynamic> toJson() => _$User2ToJson(this);
}